﻿@{
    ViewBag.Title = "";
}
@model List<MasterSheetManager.Models.Participant>
@foreach (var item in Model)
{
    <div class="result_block">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td width="130" class="td_l">
                    参会ID
                </td>
                <td width="374" class="td_r">
                    @item.ID
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    已到场
                </td>
                @if (MasterSheetManager.Utl.CH.DB.Arrival.Any(s => s.ParticipantID == item.ID && s.IsArrived == true))
                {
                    <td class="td_r">
                        是
                    </td>
                }
                else
                { 
                    <td class="td_r">
                        否
                        <input type="button" value="参会确认" class="check_attend" onclick="windowOpen(@item.ID);" />
                    </td>
                }
            </tr>
            <tr>
                <td class="td_l">
                    姓名
                </td>
                <td class="td_r">
                    @item.Name
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    所在公司/机构
                </td>
                <td class="td_r">
                    @item.Deal.CompanyRelationship.Company.Name
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    职务
                </td>
                <td class="td_r">
                    @item.Title
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    性别
                </td>
                <td class="td_r">
                    @item.Gender
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    联系方式
                </td>
                <td class="td_r">
                    @item.Address
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    邮箱
                </td>
                <td class="td_r">
                    @item.Email
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    移动电话
                </td>
                <td class="td_r">
                    @item.Mobile
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    参会类型
                </td>
                <td class="td_r">
                    @item.ParticipantType.Name
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    票价
                </td>
                <td class="td_r">
                    @item.Deal.Income
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    票务种类
                </td>
                <td class="td_r">
                    @item.Deal.Package.PackageType.Name
                </td>
            </tr>
            <tr>
                <td class="td_l">
                    备注
                </td>
                <td class="td_r">
                    @item.Description
                </td>
            </tr>
        </table>
    </div>
}
